<?php
header('Content-type:text/html; charset=utf-8');
$url = empty($_GET['url']) ? '' : $_GET['url'];

$content = empty($url) ? '' : file_get_contents($url);

$matches = array();
$ads = preg_match_all('/<!--s_[0-9a-z_]+-->/si', $content, $matches);
?>



<form action="" method="GET">
	<input type="text" name="url" value="<?php echo $url?>" style="width:500px;" />
	<input type="submit" value="检查" />
</form>



<?php

echo '<ol>';
foreach ($matches[0] as $row) {
	echo '<li><b style="color:#f00;">'.htmlspecialchars($row).'</b></li>';
}
echo '</ol>';

if(empty($matches[0])) {
	echo '没有找到！';
}

?>